package com.atguigu.jxc.service;

import com.atguigu.jxc.domain.ServiceVO;
import com.atguigu.jxc.entity.Customer;

import java.util.Map;

public interface CustomerService {
    /**
     * 分页查询客户
     * @param page 当前页数
     * @param rows 每页显示的记录数
     * @param customerName 客户名字
     * @return map
     */
    Map<String, Object> list(Integer page, Integer rows, String customerName);

    /**
     * 客户添加或修改
     * @param customerId
     * @param customer
     * @return ServiceVO
     */
    ServiceVO save(Integer customerId, Customer customer);

    /**
     * 批量删除客户
     * @param ids 1,4,6
     * @return
     */
    ServiceVO delete(String ids);
}
